﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Web;

using UncleBobWebService.Models;

namespace UncleBobWebService.ServiceRequester
{
    [DataContract]
    [KnownType(typeof(RegisterModel))]
    [KnownType(typeof(HMRegisterModel))]
    [KnownType(typeof(JobModel))]
    [KnownType(typeof(List<JobModel>))]
    [KnownType(typeof(ApplicationQuestions))]
    [KnownType(typeof(ApplicationQuestion))]
    [KnownType(typeof(Answer))]
    [KnownType(typeof(ExtendedQuestion))]
    [KnownType(typeof(MultipleChoiceQuestion))]    
    [KnownType(typeof(KioskUser))]
    [KnownType(typeof(JobApplication))]
    [KnownType(typeof(CommentModel))]

    public class Message
    {
        public Message()
        {
        }

        public Message(string type)
        {
            Category = type;
        }

        public Message(HMRegisterModel hmModel)
        {
            Data = hmModel;
        }

        //**************************************************
        //Get category
        //**************************************************
        [DataMember]
        public string Category { get; set; }


        //**************************************************
        //Retrieve data
        //**************************************************
        [DataMember]
        public Object Data { get; set; }


        //**************************************************
        //Retrieve data
        //**************************************************
        [DataMember]
        public string Extra { get; set; }


        //**************************************************
        //Result for each operation
        //**************************************************
        [DataMember]
        public bool Result { get; set; }
    }
}